﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="CampaignDetails.aspx.cs"
    Inherits="iOak.Web.Administration.CampaignDetails" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=btnCancel.ClientID %>').bind('click', function () {
                location.href = '/Administration/CampaignList.aspx';
                return false;
            });

            $('#<%=btnOk.ClientID %>').bind('click', function () {
                return checkPageData();
            });

            $('#<%=txtStartDate.ClientID %>').datepicker();
            $('#<%=txtEndDate.ClientID %>').datepicker();
        });

        function checkPageData() {
            var msg = "";
            if ($.trim($('#<%=txtSubject.ClientID %>').val()) == '') {
                msg = $('#<%=lblSubject.ClientID %>').text();
            }
            else if ($.trim($('#<%=txtStartDate.ClientID %>').val()) == '') {
                msg = $('#<%=lblStartDate.ClientID %>').text();
            }
            else if ($.trim($('#<%=txtEndDate.ClientID %>').val()) == '') {
                msg = $('#<%=lblEndDate.ClientID %>').text();
            }
            else if ($.trim($('#<%=txtSelectedAttaches.ClientID %>').val()) == '') {
                msg = $('#<%=lblSelectedAttaches.ClientID %>').text();
            }
            else if ($.trim($('#<%=txtBounty.ClientID %>').val()) == '') {
                msg = $('#<%=lblBounty.ClientID %>').text();
            }
            if (msg == '') {
                return true;
            }
            else {
                msg = "请输入“" + msg + "”";
                jAlert(msg);
                return false;
            }
        }

    </script>
    <div class="content">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color: #fff;">
            <tr>
                <td width="7" align="left" valign="top">
                    <img src="/images/tab-j_01.jpg" width="7" height="7" />
                </td>
                <td width="755">
                    &nbsp;
                </td>
                <td width="10" align="right" valign="top">
                    <img src="/images/tab-j_02.jpg" width="7" height="7" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <div style="border: 1px solid #ccc">
                        <div style="border: 1px solid #fff">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <div class="content-top">
                                            <div class="top_edit_bg">
                                                申报</div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <div style="padding-top: 20px; background: #f9f9f9;">
                                            <table width="100%" border="0" cellspacing="10" cellpadding="0">
                                                <tr>
                                                    <td class="editor-label" style="width: 30%">
                                                        <asp:Label runat="server" ID="lblSubject">申报名称</asp:Label>
                                                    </td>
                                                    <td align="left" style="width: 70%">
                                                        <asp:TextBox runat="server" ID="txtSubject" class="must" Width="593px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label" valign="top">
                                                        详细描述
                                                    </td>
                                                    <td align="left">
                                                        <asp:TextBox runat="server" ID="txtDescription" TextMode="MultiLine" Height="500px"
                                                            Width="594px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        <asp:Label runat="server" ID="lblStartDate">申请起始日</asp:Label>
                                                    </td>
                                                    <td align="left">
                                                        <asp:TextBox runat="server" ID="txtStartDate" class="must"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        <asp:Label runat="server" ID="lblEndDate">申请截止日</asp:Label>
                                                    </td>
                                                    <td align="left">
                                                        <asp:TextBox runat="server" ID="txtEndDate" class="must"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        对应人才政策
                                                    </td>
                                                    <td align="left">
                                                        <asp:DropDownList runat="server" ID="ddlPolicy" Width="280px" CssClass="dropDown">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label" valign="top">
                                                        <asp:Label runat="server" ID="lblSelectedAttaches">附件清单</asp:Label>
                                                    </td>
                                                    <td align="left" valign="top">
                                                        <asp:TextBox runat="server" ID="txtSelectedAttaches" TextMode="MultiLine" Height="100px" CssClass="must" Width="200px"></asp:TextBox>
                                                        <span class="editor-common">一项一行</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        <asp:Label runat="server" ID="lblBounty">补贴标准</asp:Label>
                                                    </td>
                                                    <td align="left">
                                                        <asp:TextBox runat="server" ID="txtBounty" class="must"></asp:TextBox>
                                                        <ajaxToolkit:FilteredTextBoxExtender runat="server" ID="filteredTextBoxExtender"
                                                            FilterType="Numbers" TargetControlID="txtBounty">
                                                        </ajaxToolkit:FilteredTextBoxExtender>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        立即启动
                                                    </td>
                                                    <td align="left">
                                                        <asp:CheckBox runat="server" ID="chkOpen" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <br />
                                                        <asp:Button runat="server" ID="btnOk" Text="确定" OnClick="btnOk_Click" CssClass="adminButtonBlue" />
                                                        <asp:Button runat="server" ID="btnCancel" Text="取消" CssClass="adminButtonBlue" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="left" valign="bottom">
                    <img src="/images/tab-j_03.jpg" width="7" height="7" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td align="right" valign="bottom">
                    <img src="/images/tab-j_04.jpg" width="7" height="7" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
